fatal: detected dubious ownership in repository at '/root/project' when ran with --use-lxd
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
Snapcraft 7.1.3 on Kinetic
```
mkdir foo
cd foo
snapcraft init
sed -i 's/version:.*/version: git/' snap/snapcraft.yaml
git init .
snapcraft --use-lxd # ... LP#1990297
snapcraft --use-lxd
# ...
Determining the version from the project repo (version: git).
fatal: detected dubious ownership in repository at '/root/project'
To add an exception for this directory, call:
git config --global --add safe.directory /root/project
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
```
Evaluation history
No evaluation history available.